<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Galleries</title>
  <%= stylesheet_link_tag 'gallery' %>
</head>
<body>

<% @images.each do |image| %>
	<a href="../../images/<%= image['path'] %>">
		<% if image['size'][0] > image['size'][1] %>
  			<div name="image-div" class="image-div image-landscape" style="background-image: url(/images/galleries/<%= image['path'] %>)"></div>	
		<% else %>
			<div name="image-div" class="image-div image-portrait" style="background-image: url(/images/galleries/<%= image['path'] %>)"></div>	
		<% end %>
	</a>
<% end %>

</body>
</html>

